home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_218_a139 < prev    next >
Unknown  |  1994-07-14  |  5.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 1f 00 00 02 2d 00 00 | 00 1f 61 31 33 39 00 00 |.....-..|..a139..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 05 43 4c 4e 65 77 | 00 00 06 00 00 00 00 01 |...CLNew|........|
|00000060| 02 00 00 02 2e 00 00 01 | 02 00 00 00 14 03 c1 00 |........|........|
|00000070| 28 05 7e 00 ff 00 00 00 | 00 00 00 0f a8 00 00 00 |(.~.....|........|
|00000080| 00 4e 1c 00 00 00 09 00 | 00 00 04 00 04 ff fc ff |.N......|........|
|00000090| fa 00 04 00 04 ff fc ff | fc 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 83 00 0b 40 10 6b 53 | 63 72 65 65 6e 41 50 49 |....@.kS|creenAPI|
|000000b0| 2f 31 39 39 39 36 00 06 | 47 65 6e 65 76 61 00 00 |/19996..|Geneva..|
|000000c0| a8 4c 69 73 74 48 61 6e | 64 6c 65 20 43 4c 4e 65 |.ListHan|dle CLNe|
|000000d0| 77 28 73 68 6f 72 74 20 | 76 69 65 77 49 44 2c 20 |w(short |viewID, |
|000000e0| 42 6f 6f 6c 65 61 6e 20 | 76 69 73 2c 20 52 65 63 |Boolean |vis, Rec|
|000000f0| 74 20 2a 76 52 65 63 74 | 2c 20 73 68 6f 72 74 20 |t *vRect|, short |
|00000100| 6e 75 6d 52 6f 77 73 2c | 20 73 68 6f 72 74 20 6e |numRows,| short n|
|00000110| 75 6d 43 6f 6c 73 2c 20 | 73 68 6f 72 74 20 63 65 |umCols, |short ce|
|00000120| 6c 6c 48 65 69 67 68 74 | 2c 20 73 68 6f 72 74 20 |llHeight|, short |
|00000130| 63 65 6c 6c 57 69 64 74 | 68 2c 20 73 68 6f 72 74 |cellWidt|h, short|
|00000140| 20 74 68 65 4c 50 72 6f | 63 2c 20 57 69 6e 64 6f | theLPro|c, Windo|
|00000150| 77 50 74 72 20 77 69 6e | 64 6f 77 2c 20 73 68 6f |wPtr win|dow, sho|
|00000160| 72 74 20 6d 6f 64 65 29 | 3b 00 00 00 06 00 00 00 |rt mode)|;.......|
|00000170| 00 00 83 00 00 02 2f 00 | 00 00 83 00 00 00 00 03 |....../.|........|
|00000180| c1 00 14 05 7e 00 ff 00 | 00 00 00 00 00 0f a8 00 |....~...|........|
|00000190| 00 00 00 4e 1d 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|000001a0| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 83 00 0b 40 14 | 6b 53 63 72 65 65 6e 4f |......@.|kScreenO|
|000001c0| 6e 65 4c 69 6e 65 2f 31 | 39 39 39 37 00 06 47 65 |neLine/1|9997..Ge|
|000001d0| 6e 65 76 61 00 00 25 43 | 72 65 61 74 65 20 61 20 |neva..%C|reate a |
|000001e0| 4c 69 73 74 20 63 6f 6e | 74 72 6f 6c 20 66 6f 72 |List con|trol for|
|000001f0| 20 74 68 65 20 77 69 6e | 64 6f 77 2e 00 00 00 06 | the win|dow.....|
|00000200| 00 00 00 00 00 44 00 00 | 02 30 00 00 00 44 00 00 |.....D..|.0...D..|
|00000210| 00 00 02 6b 04 40 02 6c | 01 00 00 00 00 00 00 01 |...k.@.l|........|
|00000220| 0f f1 00 00 00 00 00 00 | 00 00 00 0c 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 06 00 00 00 00 | 00 a7 00 00 02 31 00 00 |........|.....1..|
|00000260| 00 a7 00 00 00 00 02 6b | 02 28 03 c1 00 ff 00 00 |.......k|.(......|
|00000270| 00 00 00 00 0f a8 00 00 | 00 00 4e 16 00 00 00 09 |........|..N.....|
|00000280| 00 00 00 04 00 04 ff fc | ff fa 00 04 00 04 ff fc |........|........|
|00000290| ff fc 00 00 00 00 00 00 | 00 00 83 00 0b 40 0b 6c |........|.....@.l|
|000002a0| 69 6e 6b 73 2f 31 39 39 | 39 30 00 06 4d 6f 6e 61 |inks/199|90..Mona|
|000002b0| 63 6f 00 00 3c 61 31 33 | 30 2c 43 4c 45 76 65 6e |co..<a13|0,CLEven|
|000002c0| 74 0d 61 31 33 39 2c 43 | 4c 4e 65 77 0d 61 31 34 |t.a139,C|LNew.a14|
|000002d0| 43 2c 43 4c 56 69 65 77 | 46 72 6f 6d 4c 69 73 74 |C,CLView|FromList|
|000002e0| 0d 61 32 35 41 2c 49 73 | 43 74 6c 45 76 65 6e 74 |.a25A,Is|CtlEvent|
|000002f0| 0d 00 16 00 01 00 00 00 | 00 00 10 00 0c 00 01 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 06 00 00 00 00 14 |........|........|
|00000310| 09 00 00 02 32 00 00 14 | 09 00 00 00 00 00 00 75 |....2...|.......u|
|00000320| 30 02 6b 01 ff 00 00 00 | 00 00 00 0f a8 00 00 00 |0.k.....|........|
|00000330| 00 4e 1f 00 00 00 09 00 | 00 00 04 00 04 ff fc ff |.N......|........|
|00000340| fa 00 04 00 04 ff fc ff | fc 00 00 00 00 00 00 00 |........|........|
|00000350| 00 83 00 0b 40 0a 62 6f | 64 79 2f 31 39 39 39 39 |....@.bo|dy/19999|
|00000360| 00 06 4d 6f 6e 61 63 6f | 00 12 ff 4c 69 73 74 48 |..Monaco|...ListH|
|00000370| 61 6e 64 6c 65 20 43 4c | 4e 65 77 28 73 68 6f 72 |andle CL|New(shor|
|00000380| 74 20 76 69 65 77 49 44 | 2c 20 42 6f 6f 6c 65 61 |t viewID|, Boolea|
|00000390| 6e 20 76 69 73 2c 20 52 | 65 63 74 20 2a 76 52 65 |n vis, R|ect *vRe|
|000003a0| 63 74 2c 20 73 68 6f 72 | 74 20 6e 75 6d 52 6f 77 |ct, shor|t numRow|
|000003b0| 73 2c 20 73 68 6f 72 74 | 20 6e 75 6d 43 6f 6c 73 |s, short| numCols|
|000003c0| 2c 20 73 68 6f 72 74 20 | 63 65 6c 6c 48 65 69 67 |, short |cellHeig|
|000003d0| 68 74 2c 20 73 68 6f 72 | 74 20 63 65 6c 6c 57 69 |ht, shor|t cellWi|
|000003e0| 64 74 68 2c 20 73 68 6f | 72 74 20 74 68 65 4c 50 |dth, sho|rt theLP|
|000003f0| 72 6f 63 2c 20 57 69 6e | 64 6f 77 50 74 72 20 77 |roc, Win|dowPtr w|
|00000400| 69 6e 64 6f 77 2c 20 73 | 68 6f 72 74 20 6d 6f 64 |indow, s|hort mod|
|00000410| 65 29 3b 0d 0d 54 68 69 | 73 20 4c 69 73 74 20 63 |e);..Thi|s List c|
|00000420| 6f 6e 74 72 6f 6c 20 69 | 6d 70 6c 65 6d 65 6e 74 |ontrol i|mplement|
|00000430| 61 74 69 6f 6e 20 64 6f | 65 73 20 74 68 65 20 66 |ation do|es the f|
|00000440| 6f 6c 6c 6f 77 69 6e 67 | 3a 0d 0d 31 29 20 20 4d |ollowing|:..1) M|
|00000450| 61 6b 65 73 20 75 73 69 | 6e 67 20 6c 69 73 74 73 |akes usi|ng lists|
|00000460| 20 69 6e 20 61 20 6e 6f | 6e 2d 64 69 61 6c 6f 67 | in a no|n-dialog|
|00000470| 20 77 69 6e 64 6f 77 20 | 65 61 73 69 65 72 2e 0d | window |easier..|
|00000480| 32 29 20 20 54 68 65 20 | 4c 69 73 74 20 69 73 20 |2) The |List is |
|00000490| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 61 73 |automati|cally as|
|000004a0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|000004b0| 65 20 77 69 6e 64 6f 77 | 2c 20 73 69 6e 63 65 0d |e window|, since.|
|000004c0| 20 20 20 20 69 74 20 69 | 73 20 69 6e 20 74 68 65 | it i|s in the|
|000004d0| 20 77 69 6e 64 6f 77 27 | 73 20 63 6f 6e 74 72 6f | window'|s contro|
|000004e0| 6c 20 6c 69 73 74 2e 0d | 34 29 20 20 55 70 64 61 |l list..|4) Upda|
|000004f0| 74 69 6e 67 20 6f 66 20 | 74 68 65 20 4c 69 73 74 |ting of |the List|
|00000500| 20 69 73 20 6d 75 63 68 | 20 73 69 6d 70 6c 65 72 | is much| simpler|
|00000510| 2c 20 73 69 6e 63 65 20 | 61 6c 6c 20 74 68 61 74 |, since |all that|
|00000520| 20 69 73 0d 20 20 20 20 | 6e 65 63 65 73 73 61 72 | is. |necessar|
|00000530| 79 20 69 73 20 74 6f 20 | 64 72 61 77 20 74 68 65 |y is to |draw the|
|00000540| 20 63 6f 6e 74 72 6f 6c | 20 28 6f 72 20 61 6c 6c | control| (or all|
|00000550| 20 74 68 65 20 77 69 6e | 64 6f 77 27 73 20 63 6f | the win|dow's co|
|00000560| 6e 74 72 6f 6c 73 20 77 | 69 74 68 0d 20 20 20 20 |ntrols w|ith. |
|00000570| 61 20 44 72 61 77 43 6f | 6e 74 72 6f 6c 73 20 63 |a DrawCo|ntrols c|
|00000580| 61 6c 6c 29 2e 0d 35 29 | 20 20 57 68 61 74 20 69 |all)..5)| What i|
|00000590| 73 6e 27 74 20 68 61 6e | 64 6c 65 64 20 61 75 74 |sn't han|dled aut|
|000005a0| 6f 6d 61 74 69 63 61 6c | 6c 79 20 62 79 20 74 72 |omatical|ly by tr|
|000005b0| 61 63 6b 69 6e 67 20 74 | 68 65 20 63 6f 6e 74 72 |acking t|he contr|
|000005c0| 6f 6c 20 63 61 6e 20 62 | 65 20 68 61 6e 64 6c 65 |ol can b|e handle|
|000005d0| 64 0d 20 20 20 20 77 69 | 74 68 20 61 20 64 69 72 |d. wi|th a dir|
|000005e0| 65 63 74 20 63 61 6c 6c | 2e 20 20 54 68 65 72 65 |ect call|. There|
|000005f0| 20 61 72 65 20 73 69 6d | 70 6c 65 20 63 61 6c 6c | are sim|ple call|
|00000600| 73 20 74 6f 20 68 61 6e | 64 6c 65 20 4c 69 73 74 |s to han|dle List|
|00000610| 20 65 76 65 6e 74 73 2e | 0d 36 29 20 20 57 68 65 | events.|.6) Whe|
|00000620| 6e 20 79 6f 75 20 63 6c | 6f 73 65 20 74 68 65 20 |n you cl|ose the |
|00000630| 77 69 6e 64 6f 77 2c 20 | 74 68 65 20 4c 69 73 74 |window, |the List|
|00000640| 52 65 63 6f 72 64 20 69 | 73 20 64 69 73 70 6f 73 |Record i|s dispos|
|00000650| 65 64 20 6f 66 2e 0d 20 | 20 20 20 28 54 68 69 73 |ed of.. | (This|
|00000660| 20 61 75 74 6f 6d 61 74 | 69 63 20 64 69 73 70 6f | automat|ic dispo|
|00000670| 73 61 6c 20 63 61 6e 20 | 65 61 73 69 6c 79 20 62 |sal can |easily b|
|00000680| 65 20 64 65 66 65 61 74 | 65 64 2e 29 0d 0d 54 6f |e defeat|ed.)..To|
|00000690| 20 63 72 65 61 74 65 20 | 61 20 4c 69 73 74 20 63 | create |a List c|
|000006a0| 6f 6e 74 72 6f 6c 2c 20 | 79 6f 75 20 6f 6e 6c 79 |ontrol, |you only|
|000006b0| 20 6e 65 65 64 20 61 20 | 73 69 6e 67 6c 65 20 63 | need a |single c|
|000006c0| 61 6c 6c 2e 20 20 46 6f | 72 20 65 78 61 6d 70 6c |all. Fo|r exampl|
|000006d0| 65 3a 0d 0d 20 20 20 20 | 6c 69 73 74 20 3d 20 43 |e:.. |list = C|
|000006e0| 4c 4e 65 77 28 72 56 69 | 65 77 43 74 6c 2c 20 20 |LNew(rVi|ewCtl, |
|000006f0| 20 20 20 20 20 20 20 20 | 52 65 73 6f 75 72 63 65 | |Resource|
|00000700| 20 49 44 20 6f 66 20 76 | 69 65 77 20 63 6f 6e 74 | ID of v|iew cont|
|00000710| 72 6f 6c 20 66 6f 72 20 | 4c 69 73 74 20 63 6f 6e |rol for |List con|
|00000720| 74 72 6f 6c 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |trol.. | |
|00000730| 20 20 20 20 20 20 20 74 | 72 75 65 2c 20 20 20 20 | t|rue, |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 49 6e 69 74 69 61 | | Initia|
|00000750| 6c 6c 79 20 76 69 73 69 | 62 6c 65 2e 0d 20 20 20 |lly visi|ble.. |
|00000760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 26 76 | | &v|
|00000770| 69 65 77 52 65 63 74 2c | 20 20 20 20 20 20 20 20 |iewRect,| |
|00000780| 20 56 69 65 77 20 72 65 | 63 74 20 6f 66 20 6c 69 | View re|ct of li|
|00000790| 73 74 2e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |st.. | |
|000007a0| 20 20 20 20 20 6e 75 6d | 52 6f 77 73 2c 20 20 20 | num|Rows, |
|000007b0| 20 20 20 20 20 20 20 20 | 4e 75 6d 62 65 72 20 6f | |Number o|
|000007c0| 66 20 72 6f 77 73 20 74 | 6f 20 63 72 65 61 74 65 |f rows t|o create|
|000007d0| 20 4c 69 73 74 20 77 69 | 74 68 2e 0d 20 20 20 20 | List wi|th.. |
|000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 75 6d | | num|
|000007f0| 43 6f 6c 73 2c 20 20 20 | 20 20 20 20 20 20 20 20 |Cols, | |
|00000800| 4e 75 6d 62 65 72 20 6f | 66 20 63 6f 6c 75 6d 6e |Number o|f column|
|00000810| 73 20 74 6f 20 63 72 65 | 61 74 65 20 4c 69 73 74 |s to cre|ate List|
|00000820| 20 77 69 74 68 2e 0d 20 | 20 20 20 20 20 20 20 20 | with.. | |
|00000830| 20 20 20 20 20 20 20 20 | 63 65 6c 6c 48 65 69 67 | |cellHeig|
|00000840| 68 74 2c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ht,. | |
|00000850| 20 20 20 20 20 63 65 6c | 6c 57 69 64 74 68 2c 0d | cel|lWidth,.|
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000870| 20 74 68 65 4c 50 72 6f | 63 2c 20 20 20 20 20 20 | theLPro|c, |
|00000880| 20 20 20 20 43 75 73 74 | 6f 6d 20 4c 69 73 74 20 | Cust|om List |
|00000890| 70 72 6f 63 65 64 75 72 | 65 20 72 65 73 6f 75 72 |procedur|e resour|
|000008a0| 63 65 20 49 44 2e 0d 20 | 20 20 20 20 20 20 20 20 |ce ID.. | |
|000008b0| 20 20 20 20 20 20 20 20 | 77 69 6e 64 6f 77 2c 20 | |window, |
|000008c0| 20 20 20 20 20 20 20 20 | 20 20 20 57 69 6e 64 6f | | Windo|
|000008d0| 77 20 74 6f 20 68 6f 6c | 64 20 4c 69 73 74 20 63 |w to hol|d List c|
|000008e0| 6f 6e 74 72 6f 6c 2e 0d | 20 20 20 20 20 20 20 20 |ontrol..| |
|000008f0| 20 20 20 20 20 20 20 20 | 20 63 6c 48 53 63 72 6f | | clHScro|
|00000900| 6c 6c 20 7c 20 62 6c 42 | 72 64 72 20 7c 20 63 6c |ll | blB|rdr | cl|
|00000910| 41 63 74 69 76 65 29 3b | 20 20 20 20 48 6f 72 69 |Active);| Hori|
|00000920| 7a 6f 6e 74 61 6c 20 73 | 63 72 6f 6c 6c 62 61 72 |zontal s|crollbar|
|00000930| 2c 20 61 63 74 69 76 65 | 20 4c 69 73 74 2e 0d 0d |, active| List...|
|00000940| 54 68 65 20 76 61 72 69 | 6f 75 73 20 63 68 6f 69 |The vari|ous choi|
|00000950| 63 65 73 20 66 6f 72 20 | 74 68 65 20 4c 69 73 74 |ces for |the List|
|00000960| 20 63 6f 6e 74 72 6f 6c | 20 61 72 65 20 64 65 66 | control| are def|
|00000970| 69 6e 65 64 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |ined as |follows:|
|00000980| 0d 0d 23 64 65 66 69 6e | 65 20 63 6c 48 53 63 72 |..#defin|e clHScr|
|00000990| 6f 6c 6c 20 20 20 20 20 | 20 20 30 78 30 30 30 32 |oll | 0x0002|
|000009a0| 0d 23 64 65 66 69 6e 65 | 20 63 6c 56 53 63 72 6f |.#define| clVScro|
|000009b0| 6c 6c 20 20 20 20 20 20 | 20 30 78 30 30 30 38 0d |ll | 0x0008.|
|000009c0| 23 64 65 66 69 6e 65 20 | 63 6c 41 63 74 69 76 65 |#define |clActive|
|000009d0| 20 20 20 20 20 20 20 20 | 30 78 30 30 32 30 0d 23 | |0x0020.#|
|000009e0| 64 65 66 69 6e 65 20 63 | 6c 53 68 6f 77 41 63 74 |define c|lShowAct|
|000009f0| 69 76 65 20 20 20 20 30 | 78 30 30 34 30 0d 23 64 |ive 0|x0040.#d|
|00000a00| 65 66 69 6e 65 20 63 6c | 4b 65 79 50 6f 73 20 20 |efine cl|KeyPos |
|00000a10| 20 20 20 20 20 20 30 78 | 30 30 38 30 0d 23 64 65 | 0x|0080.#de|
|00000a20| 66 69 6e 65 20 63 6c 54 | 77 6f 53 74 65 70 20 20 |fine clT|woStep |
|00000a30| 20 20 20 20 20 30 78 30 | 31 30 30 0d 23 64 65 66 | 0x0|100.#def|
|00000a40| 69 6e 65 20 63 6c 48 61 | 73 47 72 6f 77 20 20 20 |ine clHa|sGrow |
|00000a50| 20 20 20 20 30 78 30 32 | 30 30 0d 23 64 65 66 69 | 0x02|00.#defi|
|00000a60| 6e 65 20 63 6c 44 72 61 | 77 49 74 20 20 20 20 20 |ne clDra|wIt |
|00000a70| 20 20 20 30 78 38 30 30 | 30 0d 0d 63 6c 48 53 63 | 0x800|0..clHSc|
|00000a80| 72 6f 6c 6c 3a 20 20 20 | 20 20 20 43 72 65 61 74 |roll: | Creat|
|00000a90| 65 20 61 20 6c 69 73 74 | 20 74 68 61 74 20 69 6e |e a list| that in|
|00000aa0| 63 6c 75 64 65 73 20 61 | 20 68 6f 72 69 7a 6f 6e |cludes a| horizon|
|00000ab0| 74 61 6c 20 73 63 72 6f | 6c 6c 62 61 72 2e 0d 63 |tal scro|llbar..c|
|00000ac0| 6c 56 53 63 72 6f 6c 6c | 3a 20 20 20 20 20 20 43 |lVScroll|: C|
|00000ad0| 72 65 61 74 65 20 61 20 | 6c 69 73 74 20 74 68 61 |reate a |list tha|
|00000ae0| 74 20 69 6e 63 6c 75 64 | 65 73 20 61 20 76 65 72 |t includ|es a ver|
|00000af0| 74 69 63 61 6c 20 73 63 | 72 6f 6c 6c 62 61 72 2e |tical sc|rollbar.|
|00000b00| 0d 63 6c 41 63 74 69 76 | 65 3a 20 20 20 20 20 20 |.clActiv|e: |
|00000b10| 20 4d 61 6b 65 20 74 68 | 69 73 20 74 68 65 20 69 | Make th|is the i|
|00000b20| 6e 69 74 69 61 6c 6c 79 | 20 61 63 74 69 76 65 20 |nitially| active |
|00000b30| 63 6f 6e 74 72 6f 6c 20 | 66 6f 72 20 74 68 65 20 |control |for the |
|00000b40| 77 69 6e 64 6f 77 2e 0d | 63 6c 53 68 6f 77 41 63 |window..|clShowAc|
|00000b50| 74 69 76 65 3a 20 20 20 | 57 68 65 6e 20 74 68 65 |tive: |When the|
|00000b60| 20 63 6f 6e 74 72 6f 6c | 20 69 73 20 61 63 74 69 | control| is acti|
|00000b70| 76 65 2c 20 73 68 6f 77 | 20 74 68 61 74 20 69 74 |ve, show| that it|
|00000b80| 20 69 73 20 62 79 20 64 | 72 61 77 69 6e 67 20 61 | is by d|rawing a|
|00000b90| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 20 20 20 20 20 | selecti|on. |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 62 6f 72 64 65 | | borde|
|00000bb0| 72 20 61 72 6f 75 6e 64 | 20 74 68 65 20 63 6f 6e |r around| the con|
|00000bc0| 74 72 6f 6c 2e 20 20 54 | 68 69 73 20 69 73 20 74 |trol. T|his is t|
|00000bd0| 68 65 20 6e 65 77 20 37 | 2e 30 20 68 75 6d 61 6e |he new 7|.0 human|
|00000be0| 2d 69 6e 74 65 72 66 61 | 63 65 0d 20 20 20 20 20 |-interfa|ce. |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 20 6d 65 74 68 6f | | metho|
|00000c00| 64 20 6f 66 20 73 68 6f | 77 69 6e 67 20 77 68 69 |d of sho|wing whi|
|00000c10| 63 68 20 63 6f 6e 74 72 | 6f 6c 20 69 73 20 61 63 |ch contr|ol is ac|
|00000c20| 74 69 76 65 2e 20 20 28 | 49 74 20 61 6c 73 6f 20 |tive. (|It also |
|00000c30| 77 6f 72 6b 73 20 69 6e | 20 73 79 73 74 65 6d 20 |works in| system |
|00000c40| 36 2e 29 0d 63 6c 4b 65 | 79 50 6f 73 3a 20 20 20 |6.).clKe|yPos: |
|00000c50| 20 20 20 20 41 6c 6c 6f | 77 20 6c 69 73 74 20 70 | Allo|w list p|
|00000c60| 6f 73 69 74 69 6f 6e 69 | 6e 67 2c 20 62 61 73 65 |ositioni|ng, base|
|00000c70| 64 20 6f 6e 20 75 73 65 | 72 20 6b 65 79 70 72 65 |d on use|r keypre|
|00000c80| 73 73 65 73 2e 20 20 54 | 68 69 73 20 61 73 73 75 |sses. T|his assu|
|00000c90| 6d 65 73 20 74 68 61 74 | 0d 20 20 20 20 20 20 20 |mes that|. |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 74 68 65 20 6c 69 73 | | the lis|
|00000cb0| 74 20 69 73 20 61 6c 70 | 68 61 62 65 74 69 7a 65 |t is alp|habetize|
|00000cc0| 64 20 73 6f 20 74 68 61 | 74 20 6b 65 79 20 70 72 |d so tha|t key pr|
|00000cd0| 65 73 73 65 73 20 66 6f | 72 20 6c 6f 63 61 74 69 |esses fo|r locati|
|00000ce0| 6f 6e 20 6d 61 6b 65 20 | 73 65 6e 73 65 2e 0d 20 |on make |sense.. |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00000d00| 66 20 74 79 70 69 6e 67 | 20 62 79 20 74 68 65 20 |f typing| by the |
|00000d10| 75 73 65 72 20 69 73 20 | 66 61 73 74 20 65 6e 6f |user is |fast eno|
|00000d20| 75 67 68 2c 20 6d 75 6c | 74 69 70 6c 65 20 63 68 |ugh, mul|tiple ch|
|00000d30| 61 72 61 63 74 65 72 73 | 20 77 69 6c 6c 20 62 65 |aracters| will be|
|00000d40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000d50| 20 75 73 65 64 20 66 6f | 72 20 74 68 65 20 70 6f | used fo|r the po|
|00000d60| 73 69 74 69 6f 6e 69 6e | 67 2e 0d 63 6c 54 77 6f |sitionin|g..clTwo|
|00000d70| 53 74 65 70 3a 20 20 20 | 20 20 20 57 68 65 6e 20 |Step: | When |
|00000d80| 75 73 69 6e 67 20 49 73 | 43 74 6c 45 76 65 6e 74 |using Is|CtlEvent|
|00000d90| 28 29 2c 20 79 6f 75 20 | 6d 61 79 20 77 61 6e 74 |(), you |may want|
|00000da0| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 20 63 6c 69 | the ini|tial cli|
|00000db0| 63 6b 20 6f 6e 20 61 20 | 4c 69 73 74 0d 20 20 20 |ck on a |List. |
|00000dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6f 6e | | con|
|00000dd0| 74 72 6f 6c 20 74 6f 20 | 6a 75 73 74 20 73 65 6c |trol to |just sel|
|00000de0| 65 63 74 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 2c |ect the |control,|
|00000df0| 20 6f 72 20 79 6f 75 20 | 6d 61 79 20 77 69 73 68 | or you |may wish|
|00000e00| 20 74 68 65 20 63 6c 69 | 63 6b 20 74 6f 20 73 74 | the cli|ck to st|
|00000e10| 61 72 74 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |art. | |
|00000e20| 20 20 20 20 74 72 61 63 | 6b 69 6e 67 20 69 6e 20 | trac|king in |
|00000e30| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 73 65 6c 65 |addition| to sele|
|00000e40| 63 74 69 6e 67 20 74 68 | 65 20 63 6f 6e 74 72 6f |cting th|e contro|
|00000e50| 6c 2e 20 20 54 68 65 20 | 74 72 61 63 6b 69 6e 67 |l. The |tracking|
|00000e60| 20 69 73 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | is. | |
|00000e70| 20 20 20 20 63 6f 6e 73 | 69 64 65 72 65 64 20 74 | cons|idered t|
|00000e80| 68 65 20 73 65 63 6f 6e | 64 20 73 74 65 70 2e 20 |he secon|d step. |
|00000e90| 20 42 79 20 73 65 74 74 | 69 6e 67 20 74 68 69 73 | By sett|ing this|
|00000ea0| 20 62 69 74 2c 20 79 6f | 75 20 69 6e 64 69 63 61 | bit, yo|u indica|
|00000eb0| 74 65 20 74 68 61 74 20 | 79 6f 75 0d 20 20 20 20 |te that |you. |
|00000ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 77 61 6e 74 | | want|
|00000ed0| 20 63 6f 6e 74 72 6f 6c | 20 73 65 6c 65 63 74 69 | control| selecti|
|00000ee0| 6f 6e 20 61 6e 64 20 69 | 74 65 6d 20 73 65 6c 65 |on and i|tem sele|
|00000ef0| 63 74 69 6f 6e 20 74 6f | 20 62 65 20 61 20 32 2d |ction to| be a 2-|
|00000f00| 73 74 65 70 20 70 72 6f | 63 65 73 73 2e 0d 20 20 |step pro|cess.. |
|00000f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 65 | | Se|
|00000f20| 74 74 69 6e 67 20 74 68 | 69 73 20 62 69 74 20 6d |tting th|is bit m|
|00000f30| 65 61 6e 73 20 74 68 61 | 74 20 69 74 20 77 69 6c |eans tha|t it wil|
|00000f40| 6c 20 74 61 6b 65 20 32 | 20 73 65 70 61 72 61 74 |l take 2| separat|
|00000f50| 65 20 63 6c 69 63 6b 73 | 20 62 79 20 74 68 65 0d |e clicks| by the.|
|00000f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f70| 75 73 65 72 20 74 6f 20 | 73 65 6c 65 63 74 20 61 |user to |select a|
|00000f80| 6e 20 69 74 65 6d 20 69 | 6e 20 74 68 65 20 6c 69 |n item i|n the li|
|00000f90| 73 74 20 69 66 20 74 68 | 65 20 6c 69 73 74 20 69 |st if th|e list i|
|00000fa0| 73 20 69 6e 61 63 74 69 | 76 65 2e 0d 63 6c 48 61 |s inacti|ve..clHa|
|00000fb0| 73 47 72 6f 77 3a 20 20 | 20 20 20 20 54 68 69 73 |sGrow: | This|
|00000fc0| 20 6d 61 6b 65 73 20 73 | 75 72 65 20 74 68 61 74 | makes s|ure that|
|00000fd0| 20 74 68 65 72 65 20 69 | 73 20 73 70 61 63 65 20 | there i|s space |
|00000fe0| 66 6f 72 20 74 68 65 20 | 67 72 6f 77 49 63 6f 6e |for the |growIcon|
|00000ff0| 20 69 66 20 74 68 65 20 | 6c 69 73 74 0d 20 20 20 | if the |list. |
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 68 61 73 | | has|
|00001010| 20 61 20 73 63 72 6f 6c | 6c 62 61 72 2e 20 20 49 | a scrol|lbar. I|
|00001020| 66 20 74 68 65 20 6c 69 | 73 74 20 6f 63 63 75 70 |f the li|st occup|
|00001030| 69 65 73 20 61 6e 20 65 | 6e 74 69 72 65 20 77 69 |ies an e|ntire wi|
|00001040| 6e 64 6f 77 2c 20 74 68 | 65 6e 20 69 66 20 74 68 |ndow, th|en if th|
|00001050| 65 72 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ere. | |
|00001060| 20 20 20 20 69 73 20 6f | 6e 6c 79 20 6f 6e 65 20 | is o|nly one |
|00001070| 73 63 72 6f 6c 6c 62 61 | 72 2c 20 74 68 65 20 73 |scrollba|r, the s|
|00001080| 63 72 6f 6c 6c 62 61 72 | 20 68 61 73 20 74 6f 20 |crollbar| has to |
|00001090| 62 65 20 73 68 72 75 6e | 6b 20 74 6f 20 6d 61 6b |be shrun|k to mak|
|000010a0| 65 20 72 6f 6f 6d 0d 20 | 20 20 20 20 20 20 20 20 |e room. | |
|000010b0| 20 20 20 20 20 20 20 66 | 6f 72 20 74 68 65 20 67 | f|or the g|
|000010c0| 72 6f 77 49 63 6f 6e 2e | 20 20 54 68 65 20 4c 69 |rowIcon.| The Li|
|000010d0| 73 74 20 4d 61 6e 61 67 | 65 72 20 73 75 70 70 6f |st Manag|er suppo|
|000010e0| 73 65 64 6c 79 20 68 61 | 73 20 74 68 69 73 20 61 |sedly ha|s this a|
|000010f0| 62 69 6c 69 74 79 2c 20 | 62 75 74 0d 20 20 20 20 |bility, |but. |
|00001100| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 74 20 64 | | it d|
|00001110| 6f 65 73 6e 27 74 20 77 | 6f 72 6b 2e 20 20 54 68 |oesn't w|ork. Th|
|00001120| 65 20 4c 69 73 74 20 63 | 6f 6e 74 72 6f 6c 20 6d |e List c|ontrol m|
|00001130| 61 6e 61 67 65 73 20 69 | 74 20 63 6f 72 72 65 63 |anages i|t correc|
|00001140| 74 6c 79 2e 0d 63 6c 44 | 72 61 77 49 74 3a 20 20 |tly..clD|rawIt: |
|00001150| 20 20 20 20 20 54 68 69 | 73 20 69 73 20 61 20 4c | Thi|s is a L|
|00001160| 69 73 74 20 6d 61 6e 61 | 67 65 72 20 66 6c 61 67 |ist mana|ger flag|
|00001170| 20 74 68 61 74 20 69 73 | 20 6e 65 65 64 65 64 20 | that is| needed |
|00001180| 66 6f 72 20 74 68 65 20 | 4c 4e 65 77 28 29 20 63 |for the |LNew() c|
|00001190| 61 6c 6c 2e 0d 0d 0d 49 | 66 20 74 68 65 20 43 4c |all....I|f the CL|
|000011a0| 4e 65 77 20 63 61 6c 6c | 20 73 75 63 63 65 65 64 |New call| succeed|
|000011b0| 73 2c 20 79 6f 75 20 74 | 68 65 6e 20 68 61 76 65 |s, you t|hen have|
|000011c0| 20 61 20 4c 69 73 74 20 | 63 6f 6e 74 72 6f 6c 20 | a List |control |
|000011d0| 69 6e 20 79 6f 75 72 20 | 77 69 6e 64 6f 77 2e 20 |in your |window. |
|000011e0| 20 49 74 20 77 69 6c 6c | 20 62 65 0d 61 75 74 6f | It will| be.auto|
|000011f0| 6d 61 74 69 63 61 6c 6c | 79 20 64 69 73 70 6f 73 |maticall|y dispos|
|00001200| 65 64 20 6f 66 20 77 68 | 65 6e 20 79 6f 75 20 63 |ed of wh|en you c|
|00001210| 6c 6f 73 65 20 74 68 65 | 20 77 69 6e 64 6f 77 2e |lose the| window.|
|00001220| 20 20 49 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 77 | If you| don't w|
|00001230| 61 6e 74 20 74 68 69 73 | 20 74 6f 20 68 61 70 70 |ant this| to happ|
|00001240| 65 6e 2c 0d 74 68 65 6e | 20 79 6f 75 20 63 61 6e |en,.then| you can|
|00001250| 20 64 65 74 61 63 68 20 | 69 74 20 66 72 6f 6d 20 | detach |it from |
|00001260| 74 68 65 20 76 69 65 77 | 20 63 6f 6e 74 72 6f 6c |the view| control|
|00001270| 20 77 68 69 63 68 20 6f | 77 6e 73 20 69 74 2e 20 | which o|wns it. |
|00001280| 20 54 6f 20 64 6f 20 74 | 68 69 73 2c 20 79 6f 75 | To do t|his, you|
|00001290| 20 77 6f 75 6c 64 20 74 | 6f 0d 74 68 65 20 66 6f | would t|o.the fo|
|000012a0| 6c 6c 6f 77 69 6e 67 3a | 0d 0d 20 20 20 20 76 69 |llowing:|.. vi|
|000012b0| 65 77 43 74 6c 20 3d 20 | 43 4c 56 69 65 77 46 72 |ewCtl = |CLViewFr|
|000012c0| 6f 6d 4c 69 73 74 28 74 | 68 65 4c 69 73 74 48 6e |omList(t|heListHn|
|000012d0| 64 6c 29 3b 0d 20 20 20 | 20 69 66 20 28 76 69 65 |dl);. | if (vie|
|000012e0| 77 43 74 6c 29 20 53 65 | 74 43 52 65 66 43 6f 6e |wCtl) Se|tCRefCon|
|000012f0| 28 76 69 65 77 43 74 6c | 2c 20 6e 69 6c 29 3b 0d |(viewCtl|, nil);.|
|00001300| 0d 54 68 65 20 76 69 65 | 77 20 63 6f 6e 74 72 6f |.The vie|w contro|
|00001310| 6c 20 6b 65 65 70 73 20 | 61 20 72 65 66 65 72 65 |l keeps |a refere|
|00001320| 6e 63 65 20 74 6f 20 74 | 68 65 20 4c 69 73 74 20 |nce to t|he List |
|00001330| 72 65 63 6f 72 64 20 69 | 6e 20 74 68 65 20 72 65 |record i|n the re|
|00001340| 66 43 6f 6e 2e 20 20 49 | 66 20 74 68 65 20 72 65 |fCon. I|f the re|
|00001350| 66 43 6f 6e 20 69 73 0d | 63 6c 65 61 72 65 64 2c |fCon is.|cleared,|
|00001360| 20 74 68 65 6e 20 74 68 | 65 20 76 69 65 77 20 63 | then th|e view c|
|00001370| 6f 6e 74 72 6f 6c 20 64 | 6f 65 73 20 6e 6f 74 68 |ontrol d|oes noth|
|00001380| 69 6e 67 2e 20 20 53 6f | 2c 20 61 6c 6c 20 74 68 |ing. So|, all th|
|00001390| 61 74 20 69 73 20 6e 65 | 65 64 65 64 20 74 6f 20 |at is ne|eded to |
|000013a0| 64 65 74 61 63 68 20 61 | 20 4c 69 73 74 0d 72 65 |detach a| List.re|
|000013b0| 63 6f 72 64 20 66 72 6f | 6d 20 61 20 76 69 65 77 |cord fro|m a view|
|000013c0| 20 63 6f 6e 74 72 6f 6c | 20 69 73 20 74 6f 20 73 | control| is to s|
|000013d0| 65 74 20 74 68 65 20 76 | 69 65 77 20 63 6f 6e 74 |et the v|iew cont|
|000013e0| 72 6f 6c 27 73 20 72 65 | 66 43 6f 6e 20 6e 69 6c |rol's re|fCon nil|
|000013f0| 2e 20 20 4e 6f 77 20 69 | 66 20 79 6f 75 20 63 6c |. Now i|f you cl|
|00001400| 6f 73 65 20 74 68 65 0d | 77 69 6e 64 6f 77 2c 20 |ose the.|window, |
|00001410| 79 6f 75 20 77 69 6c 6c | 20 73 74 69 6c 6c 20 68 |you will| still h|
|00001420| 61 76 65 20 74 68 65 20 | 4c 69 73 74 20 72 65 63 |ave the |List rec|
|00001430| 6f 72 64 2e 0d 0d 0d 54 | 6f 20 72 65 6d 6f 76 65 |ord....T|o remove|
|00001440| 20 61 20 4c 69 73 74 20 | 63 6f 6e 74 72 6f 6c 20 | a List |control |
|00001450| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 66 72 6f 6d 20 |complete|ly from |
|00001460| 61 20 77 69 6e 64 6f 77 | 2c 20 6a 75 73 74 20 64 |a window|, just d|
|00001470| 69 73 70 6f 73 65 20 6f | 66 20 74 68 65 20 76 69 |ispose o|f the vi|
|00001480| 65 77 0d 63 6f 6e 74 72 | 6f 6c 20 74 68 61 74 20 |ew.contr|ol that |
|00001490| 68 6f 6c 64 73 20 74 68 | 65 20 4c 69 73 74 20 72 |holds th|e List r|
|000014a0| 65 63 6f 72 64 2e 20 20 | 54 6f 20 64 6f 20 74 68 |ecord. |To do th|
|000014b0| 69 73 2c 20 6a 75 73 74 | 20 64 6f 20 73 6f 6d 65 |is, just| do some|
|000014c0| 74 68 69 6e 67 20 6c 69 | 6b 65 20 74 68 65 20 62 |thing li|ke the b|
|000014d0| 65 6c 6f 77 3a 0d 0d 20 | 20 20 20 44 69 73 70 6f |elow:.. | Dispo|
|000014e0| 73 65 43 6f 6e 74 72 6f | 6c 28 43 4c 56 69 65 77 |seContro|l(CLView|
|000014f0| 46 72 6f 6d 4c 69 73 74 | 28 74 68 65 4c 69 73 74 |FromList|(theList|
|00001500| 48 6e 64 6c 29 29 3b 0d | 0d 54 68 69 73 20 63 6f |Hndl));.|.This co|
|00001510| 6d 70 6c 65 74 65 6c 79 | 20 64 69 73 70 6f 73 65 |mpletely| dispose|
|00001520| 73 20 6f 66 20 74 68 65 | 20 4c 69 73 74 20 63 6f |s of the| List co|
|00001530| 6e 74 72 6f 6c 2e 0d 0d | 0d 45 76 65 6e 74 73 20 |ntrol...|.Events |
|00001540| 66 6f 72 20 74 68 65 20 | 4c 69 73 74 20 72 65 63 |for the |List rec|
|00001550| 6f 72 64 20 61 72 65 20 | 68 61 6e 64 6c 65 64 20 |ord are |handled |
|00001560| 6e 65 61 72 6c 79 20 61 | 75 74 6f 6d 61 74 69 63 |nearly a|utomatic|
|00001570| 61 6c 6c 79 2e 20 20 4a | 75 73 74 20 6d 61 6b 65 |ally. J|ust make|
|00001580| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00001590| 61 6c 6c 3a 0d 0d 20 20 | 20 20 43 4c 45 76 65 6e |all:.. | CLEven|
|000015a0| 74 28 77 69 6e 64 6f 77 | 2c 20 65 76 65 6e 74 50 |t(window|, eventP|
|000015b0| 74 72 2c 20 26 61 63 74 | 69 6f 6e 29 3b 0d 0d 49 |tr, &act|ion);..I|
|000015c0| 66 20 74 68 65 20 65 76 | 65 6e 74 20 77 61 73 20 |f the ev|ent was |
|000015d0| 68 61 6e 64 6c 65 64 2c | 20 74 72 75 65 20 69 73 |handled,| true is|
|000015e0| 20 72 65 74 75 72 6e 65 | 64 2e 20 20 49 66 20 74 | returne|d. If t|
|000015f0| 68 65 20 65 76 65 6e 74 | 20 69 73 20 66 61 6c 73 |he event| is fals|
|00001600| 65 2c 20 74 68 65 6e 20 | 74 68 65 20 65 76 65 6e |e, then |the even|
|00001610| 74 20 64 6f 65 73 6e 27 | 74 0d 62 65 6c 6f 6e 67 |t doesn'|t.belong|
|00001620| 20 74 6f 20 61 20 4c 69 | 73 74 20 63 6f 6e 74 72 | to a Li|st contr|
|00001630| 6f 6c 2c 20 61 6e 64 20 | 66 75 72 74 68 65 72 20 |ol, and |further |
|00001640| 70 72 6f 63 65 73 73 69 | 6e 67 20 6f 66 20 74 68 |processi|ng of th|
|00001650| 65 20 65 76 65 6e 74 20 | 73 68 6f 75 6c 64 20 62 |e event |should b|
|00001660| 65 20 64 6f 6e 65 2e 0d | 0d 0d 00 b6 00 09 00 00 |e done..|........|
|00001670| 00 00 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00001680| 00 00 00 00 0a 1b 00 0b | 00 09 00 04 05 00 00 09 |........|........|
|00001690| 00 00 00 00 00 00 00 00 | 0a 25 00 0b 00 09 00 04 |........|.%......|
|000016a0| 00 00 00 09 00 00 00 00 | 00 00 00 00 0f 4d 00 0b |........|.....M..|
|000016b0| 00 09 00 04 05 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 0f 5b 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |.[......|........|
|000016d0| 00 00 00 00 11 7f 00 0b | 00 09 00 04 05 00 00 09 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 11 8d 00 0b 00 09 00 04 |........|........|
|000016f0| 00 00 00 09 00 00 00 00 | 00 00 00 00 12 2f 00 0b |........|...../..|
|00001700| 00 09 00 04 05 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 12 36 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |.6......|........|
|00001720| 00 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+